//所有的依赖都是模块内的路径
define("./js/index.js",["./damu.js","./laofu.js"],function (require,exports,module) {
    var damu = require("./damu.js")
    var laofu = require("./laofu.js")

    damu.a();
    laofu.a();
})

define("./js/damu.js",["./common.js"],function(require, exports, module) {
    var common = require("./common.js")
    function a(){
        console.log("laofu-a")
        common.test()
    }
    function b(){console.log("laofu-b")}
    function c(){console.log("laofu-c")}

    // 对外提供接口
    module.exports = {
        a,b,c
    }
})

define("./js/laofu.js",["./common.js"],function(require, exports, module) {

    var common = require("./common.js")

    function a(){
        console.log("damu-a");
        common.test()
    }
    function b(){console.log("damu-b")}
    function c(){console.log("damu-c")}

    // 对外提供接口
    module.exports = {
        a,b,c
    }
})

define("./js/common.js",function (require,exports,module) {
    function test(){console.log("common-test")}
    module.exports={
        test
    }
})